/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-26<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-26<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Entity
@Table(name = "BOOK_DETAIL_INFO")
public class BookDetailInfo {

    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name = "BOOK_ID")
    private Long bookId;
    
    @Column(name = "BOOK_NAME",length = 50)
    private String bookName;
    
    @Column(name = "BOOK_PRICE",precision = 14,scale = 2)
    private BigDecimal bookPrice;
    
    @Column(name = "BOOK_TYPE_ID")
    private Long bookType;
    
    @Column(name = "AUTHOR_NAME",length = 20)
    private String authorName;
    
    @Column(name = "TRANSLATE_USER",length = 60)
    private String translateUser;
    
    @Column(name = "PRESS_ID",length = 30)
    private String pressId;
    
    @Column(name = "BOOK_SHELF_ID")
    private Long bookShelfId;
    
    @Column(name = "BOOK_BAR_CODE",length = 20)
    private String barCode;

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public Long getBookType() {
        return bookType;
    }

    public void setBookType(Long bookType) {
        this.bookType = bookType;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getTranslateUser() {
        return translateUser;
    }

    public void setTranslateUser(String translateUser) {
        this.translateUser = translateUser;
    }

    public String getPressId() {
        return pressId;
    }

    public void setPressId(String pressId) {
        this.pressId = pressId;
    }

    public Long getBookShelfId() {
        return bookShelfId;
    }

    public void setBookShelfId(Long bookShelfId) {
        this.bookShelfId = bookShelfId;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public BigDecimal getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(BigDecimal bookPrice) {
        this.bookPrice = bookPrice;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("\"BookDetailInfo\":{\"bookId\":");
        builder.append(bookId);
        builder.append(", bookName\":");
        builder.append(bookName);
        builder.append(", bookPrice\":");
        builder.append(bookPrice);
        builder.append(", bookType\":");
        builder.append(bookType);
        builder.append(", authorName\":");
        builder.append(authorName);
        builder.append(", translateUser\":");
        builder.append(translateUser);
        builder.append(", pressId\":");
        builder.append(pressId);
        builder.append(", bookShelfId\":");
        builder.append(bookShelfId);
        builder.append(", barCode\":");
        builder.append(barCode);
        builder.append("}");
        return builder.toString();
    }
    
    
}
